
function GetStorageStatus()
{
	flashpoint();

	printf('#API GetStorageStatus() ');
	printf('# returns number of images user can take until disk is full ');
	printf(' ');
	
	
	writeMenu('"GetStorageStatus"','"CMD"','"GetStorageStatus()"');
	writeVariables();
	printf('# GetFileInfo parameters ');
	printf('declare s: spath,fname');
	printf('declare u: ulength ');
	printf('declare b: bstatus' );
	printf(' ');
	printf('# EraseFile parameters ');
	printf('declare u:  filecount, newfilecount  ');
	printf('# GetStorageStatus parameters ');
	printf('declare u: picturesLeft,taken,available  ');
	printf('declare i: rawCount  ');
  
	printf('<br>','#**** OPEN FILE ****');  
	printf('outFile="/System/ZSStat.txt"');
	writeFileOpen();

	printf(' ');
	printf('WriteLine(fd," API GetStorageStatus() ")');
	printf('WriteLine(fd," returns number of images user can take until disk is full ")');
	printf(' ');


  printf('status=GetStorageStatus(taken, available, rawCount) ');
  printf('DisplayLine("avail[",status,"]=",available," ") ');
  printf('WriteLine(fd, "avail[",status,"]=",available," ") ');



  printf('FileClose( fd ) ');
  printf('#RunScript("still.csm")  ');

	printf('exitscript');



	
}
